﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="StudentRegistrationPage.aspx.cs" Inherits="UniversityStudentManagemnetSystem.UI.StudentRegistrationPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style3
        {
            width: 128px;
        }
        .style4
        {
            width: 118px;
        }
        .style5
        {
            height: 21px;
        }
        .style6
        {
            width: 118px;
            height: 21px;
        }
        #dateText
        {
            height: 17px;
            margin-bottom: 5px;
        }
    </style>
    <script src="../Scripts/jquery-1.8.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">

        function dateText_onclick() {
            $(function () {
                $(".date").datepicker({
                    dateFormat: "yy-mm-dd",
                    changeMonth: true,
                    changeYear: true,
                    yearChange: "+5:-5"


                });
            });

        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div align="center">

<fieldset style="width: 800px; height: 680px;">

    <legend style="color: #008000">Student Registration Process</legend>
    <table align="center">
    <tr>
    <td>
        <asp:Label ID="Label1" runat="server" Text="Name"></asp:Label>
    </td>
    <td class="style4">
        <asp:TextBox ID="studentNameTextBox" runat="server" Width="285px"></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
        <asp:Label ID="Label2" runat="server" Text="Email"></asp:Label>
    </td>
    <td class="style4">
        <asp:TextBox ID="emailTextBox" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
        <asp:Label ID="Label3" runat="server" Text="Contact No."></asp:Label>
    </td>
    <td class="style4">
        <asp:TextBox ID="contactNumberTextBox" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
        <asp:Label ID="Label4" runat="server" Text="Address"></asp:Label>
    </td>
    <td class="style4">
        <asp:TextBox ID="addressTextBox" runat="server" TextMode="MultiLine"></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
        <asp:Label ID="Label5" runat="server" Text="Department"></asp:Label>
    </td>
    <td class="style4">
        <asp:DropDownList ID="departmentDropDownList" runat="server">
        </asp:DropDownList>
    </td>
    </tr>
    <tr>
    <td class="style5">
        <asp:Label ID="Label6" runat="server" Text="Registration Date"></asp:Label>
        </td>
        <td class="style6">
            <asp:TextBox ID="dateTextBox" runat="server"></asp:TextBox>
&nbsp;</td></tr>
    </table>

    <div>

    <fieldset>
        <legend style="color: #008000">Education</legend>
        <table align="center">
        <tr>
        <td>
            <asp:Label ID="Label7" runat="server" Text="Exam"></asp:Label>
            </td>
        <td>
            <asp:DropDownList ID="examDropDownList" runat="server" 
                onselectedindexchanged="examDropDownList_SelectedIndexChanged">
            </asp:DropDownList>
            </td>
        <td>
            <asp:Label ID="Label9" runat="server" Text="Grade Letter/Others"></asp:Label>
            </td>
        <td class="style3">
            <asp:TextBox ID="gradeLetterOthersTextBox" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
        <td>
            <asp:Label ID="Label8" runat="server" Text="CGPA/Percentage"></asp:Label>
            </td>
        <td>
            <asp:TextBox ID="cgpaPercentageTextBox" runat="server"></asp:TextBox>
            </td>
        <td>
            <asp:Label ID="Label10" runat="server" Text="Certificate Location"></asp:Label>
            </td>
        <td class="style3">
            <asp:FileUpload ID="certificateFileUpload" runat="server" />
            </td>
            <td>
                <asp:Button ID="certificateUploadButton" runat="server" 
                    onclick="certificateUploadButton_Click" Text="Upload" />
            </td>
        </tr>
        <tr>
        <td></td>
        <td></td>
        <td></td>
        <td>
            <asp:Label ID="fileUploadMessageLabel" runat="server" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
        <td></td>
        <td>&nbsp;</td>
        <td></td>
        <td>
            <asp:Label ID="successMessage" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
        <td>
            &nbsp;</td>
        <td></td>
        <td>
            <asp:Button ID="addToListButton" runat="server" Text="Add To List" 
                onclick="addToListButton_Click" />
            </td>
        </tr>
        <tr><td>
            <asp:Label ID="saveMessageLabel" runat="server"></asp:Label>
        </td>
        </tr>
        
        </tr>
        </table>


    </fieldset>
    </div>

    <div>
   <fieldset>
   <legend style="text-decoration: blink;color: #008000">List</legend>
    &nbsp;<table align="center">
        <tr>
        <td>
            <asp:GridView ID="examGridView" runat="server" 
                CellPadding="4" ForeColor="#333333" GridLines="None">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
            </td>
        </tr>
        </table>
         
        </fieldset>
         <tr>
        <td>
        <asp:Button ID="registerButton" runat="server" Text="Register" 
            onclick="registerButton_Click" />
        </td> </tr>

        </div>
       
       </fieldset>
        </div>

</asp:Content>
